package com.boboPlanet.user.enums;

/**
 * @Description: TODO
 * @Author: mis_wu
 * @Date: 2023/3/8
 **/
public enum SysOperatorEnum {

    USER_LOGIN("login","用户登录"),
    USER_REGISTER("register","用户注册"),
    USER_LOGOUT("logout","退出登录"),
    UPDATE_USER_INFO("upUserInfo","修改用户信息"),
    UPDATE_USER_AVATAR("upUserAvatar","更换了用户头像"),
    delete_user_avatar("deleteUserAvatar","删除了用户信息中原来的头像"),
    upload_resume_avatar("uploadResumeAvatar","上传了简历头像"),
    delete_resume_old_avatar("deleteResumeOldAvatar","删除了简历上原来头像"),
    INSERT_ART("insert-art","添加了一篇新文章"),
    PUBLISH_COMMENT("publishComment","发表了评论"),
    INSERT_ART_TYPE("addArtType","添加了文章分类"),
    UPDATE_ART_TYPE("upArtType","修改了文章分类"),
    COLLECT_ART("collect","该用户收藏了一篇文章"),
    CANCEL_COLLECT_ART("cancelCollect","该用户取消收藏了一篇文章"),

    ES_CREATE_ART_IDX("esCreateArticleIndex","ES创建文章信息索引"),

    ES_INSERT_ART_DOC("esInsertArtDoc","ES插入文章信息文档"),

    ;


    private String code;

    private String desc;

    SysOperatorEnum(String code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}
